/*
 * @Author: Gary 
 * @Date: 2018-09-18 14:10:36 
 * @Last Modified by: Gary
 * @Last Modified time: 2018-10-08 15:07:56
 * 警告弹窗，用于表单页取消跳转页面
 */

import { MessageBox } from 'element-ui';
import Store from '@/store'

export default function () {
  MessageBox.confirm('所做操作将不被保存,确定要取消？', '提示', {
    confirmButtonText: '确定',
    cancelButtonText: '取消',
    type: 'warning'
  }).then(() => {
      Store.dispatch('delActiveViews');
  }).catch(err => {
    console.log(err);
  })
}